import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/base.css'
import '@/utils/drag.js'
import '@/plugins/element'
import 'animate.css'
import 'lib-flexible'
Vue.config.productionTip = false

Vue.filter('dataFormat', function (value) {
  const dt = new Date(value)

  const y = dt.getFullYear()
  const m = (dt.getMonth() + 1 + '').padStart(2, '0')
  const d = (dt.getDate() + '').padStart(2, '0')

  const hh = (dt.getHours() + '').padStart(2, '0')
  const mm = (dt.getMinutes() + '').padStart(2, '0')
  const ss = (dt.getSeconds() + '').padStart(2, '0')

  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})
Vue.filter('dataFormat1', function (value) {
  const dt = new Date(value)


  const m = (dt.getMonth() + 1 + '').padStart(2, '0')
  const d = (dt.getDate() + '').padStart(2, '0')



  return `${m}月${d}日`
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
